﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Truextend.Training.Presenter.ViewInterfaces;
using Truextend.Training.Service;

namespace Truextend.Training.Presenter
{
    public class CourseCalendarPresenter
    {
        private ICourseCalendarView view;

        public CourseCalendarPresenter(ICourseCalendarView view)
        {
            if (view == null) throw new ArgumentNullException("View may not be null");
            this.view = view;
        }

        public void InitView()
        {
            view.CourseInstances = new CourseInstanceService().GetAllCourseInstances();
        }

    }
}
